package org.lboot.idmo.module.rsr;

import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.lboot.jpa.jpa.AbstractJpaCurdExt;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
@AllArgsConstructor
public class AuthRsrServiceImpl extends AbstractJpaCurdExt<Long, AuthRsr, AuthRsrDAO> implements AuthRsrService {
    @Override
    public List<AuthRsr> getByType(String type) {
        return dao.findByType(type);
    }

    @Override
    public List<AuthRsr> getByParentId(Long parentId) {
        return dao.findByParentId(parentId);
    }

    @Override
    public List<AuthRsr> getByParentIdAndType(Long parentId, String type) {
        return dao.findByParentIdAndType(parentId, type);
    }
}
